package com.kata.chapter3;

/**
 * Created by Solidsnake on 2014/11/16.
 */
public class Main {
    public static void main(String[] args) {
        BMWCarFactory bmwCarFactory = new BMWCarFactory();
        BenZCarFactory benZCarFactory = new BenZCarFactory();

        SportsCar bmwSports = bmwCarFactory.getSportCar();
        SportsCar benzSports = benZCarFactory.getSportCar();

        BusinessCar bmwBusiness = bmwCarFactory.getBusinessCar();
        BusinessCar benzBusiness = benZCarFactory.getBusinessCar();

        bmwSports.getName();
        bmwSports.rapidDriving();
        System.out.println("-------------------------");
        benzSports.getName();
        benzSports.rapidDriving();

        System.out.println("=========================");

        bmwBusiness.getName();
        bmwBusiness.driving();
        System.out.println("-------------------------");
        benzBusiness.getName();
        benzBusiness.driving();


    }
}
